package com.mypro._01base.entity;

import java.util.List;

/**
 * 02 连接查询
 *
 *
 */
public class Teacher {
    private Integer teaid;
    private String teaname;
    private String teasex;

    //Teacher对象中包含  stu集合
    private List<Stu> stuList;

    public List<Stu> getStuList() {
        return stuList;
    }

    public void setStuList(List<Stu> stuList) {
        this.stuList = stuList;
    }

    public Integer getTeaid() {
        return teaid;
    }

    public void setTeaid(Integer teaid) {
        this.teaid = teaid;
    }

    public String getTeaname() {
        return teaname;
    }

    public void setTeaname(String teaname) {
        this.teaname = teaname;
    }

    public String getTeasex() {
        return teasex;
    }

    public void setTeasex(String teasex) {
        this.teasex = teasex;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teaid=" + teaid +
                ", teaname='" + teaname + '\'' +
                ", teasex='" + teasex + '\'' +
                '}';
    }
}
